import Vue from 'vue'
import Router from 'vue-router'
import Mainv from './views/mainv.vue'
import Home from './views/Home.vue'
import Login from './views/Login.vue'
import postTest from './views/postTest.vue'
Vue.use(Router)

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/mainv',
      name: 'mainv',
      component: Mainv,
      props: true

    },
    {
      path: '/home',
      name: 'home',
      component: Home,
      props: true

    },
    {
      path: '/postTest',
      name: 'postTest',
      component: postTest,
      props: true
    },
    {
      path: '/',
      name: 'Login',
      component: Login,
      props: true

    }
  ]
})
